package com.ice.work.project.smart.doc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Description 测试controller
 * @Author john
 * @Create 2019-12-30
 * @Since 1.0.0
 */
@Controller
@RequestMapping("test")
public class TestController {
    @RequestMapping(name = "/names", value = "", method = {RequestMethod.GET})
    public GetNameResponse getName(@RequestBody @Validated GetNameRequest request) {
        GetNameResponse response=new GetNameResponse();
        return response;
    }

}
